package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.WorkFault;

/**
 * 故障表Service接口
 * 
 * @author ruoyi
 * @date 2020-04-20
 */
public interface IWorkFaultService 
{
    /**
     * 查询故障表
     * 
     * @param id 故障表ID
     * @return 故障表
     */
    public WorkFault selectWorkFaultById(Long id);

    /**
     * 查询故障表列表
     * 
     * @param workFault 故障表
     * @return 故障表集合
     */
    public List<WorkFault> selectWorkFaultList(WorkFault workFault);

    /**
     * 新增故障表
     * 
     * @param workFault 故障表
     * @return 结果
     */
    public int insertWorkFault(WorkFault workFault);

    /**
     * 修改故障表
     * 
     * @param workFault 故障表
     * @return 结果
     */
    public int updateWorkFault(WorkFault workFault);

    /**
     * 批量删除故障表
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWorkFaultByIds(String ids);

    /**
     * 删除故障表信息
     * 
     * @param id 故障表ID
     * @return 结果
     */
    public int deleteWorkFaultById(Long id);

    WorkFault findByFormId(Long id);


    List<WorkFault> selectWorkFaultByFormId(String ids);

    void deleteWorkFaultByFormId(String ids);

    Long insertWorkFaultByIds(WorkFault workFault);

    WorkFault selectWorkFaultByForm(Long id);
}
